<%@ include file="tagHTMLLibIncludes.jsp" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
   <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
   <link href="${ctx}/css/market.css" rel="stylesheet" type="text/css" />
   <link href="${ctx}/js/dijit/themes/tundra/tundra.css" rel="stylesheet" type="text/css" />
   <title>Market +</title>
   <script type="text/javascript" src="${ctx}/js/dojo/dojo.js" djConfig="parseOnLoad: true"></script>
   <script type="text/javascript" src="${ctx}/js/market.js"></script>
   <script type="text/javascript">
      dojo.require("dijit.form.TextBox");
      dojo.require("dijit.form.Button");
      dojo.addOnLoad(function(){
         if (document.pub){
            document.pub();
         }
         _initMain();
         var tzo = new Date().getTimezoneOffset();
         document.cookie = "timezoneOffset=" + escape(tzo * (-1));
      });
   </script>
</head>
<body class="tundra">
   <div id="header"><div id="headerLogo"></div></div>
   <div class="clear"></div>
    <div id="center" class="divLoginCenter">
       <div id="commonMessage"></div>
       <div id="divLoginForm">
       <form name="f" action="loginProcess" method="post">
    <fieldset class="fieldsCollection">
        <legend><fmt:message key="login.title"/></legend>
        <div class="dotline"></div>
        <c:if test="${not empty param.login_error}">
        <div class="divRow">
            <div class="input">
                <span class="error"><fmt:message key="login.msg.failure"/><span>
                <br/><br/>
                <span class="error">Reason: <c:out value="${SPRING_SECURITY_LAST_EXCEPTION.message}"/>.</span>
            </div>
        </div>
        </c:if>
        <div class="divRow">
           <label for="j_username" class="label"><fmt:message key="login.username"/></label>
           <input type="text" id="j_username" name="j_username" value="quanvo" dojoType="dijit.form.TextBox"/>
        </div>
        <div class="divRow">
            <label for="j_password" class="label"><fmt:message key="login.password"/></label>
            <input type="password" id="j_password" name="j_password" value="password" dojoType="dijit.form.TextBox"/>
        </div>
        <div class="divRow">
            <div class="inputButton">
                <input id="jreset" type="reset" dojoType="dijit.form.Button" label="<fmt:message key="btn.reset"/>"/>
                <input id="jsubmit" type="submit" dojoType="dijit.form.Button" label="<fmt:message key="btn.login"/>"/>
                <input id="jregister" type="button" dojoType="dijit.form.Button" label="<fmt:message key="btn.register"/>"/>
            </div>
        </div>
    </fieldset>
   </form>
   </div>
   <div id="divRegisterForm"/>
    </div>
</body>
</html>
